some data need to be converted to or from base64
some data should not be converted
clear one such place where a conversion to base64 was too much
Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
BIO_write(publicKeyBio, publicKeyPem.constData(), publicKeyPem.size());
auto publicKey = PKey::readPublicKey(publicKeyBio);
- auto encryptedData = EncryptionHelper::encryptStringAsymmetric(account->e2e()->getCertificateInformation(), account->e2e()->paddingMode(), *account->e2e(), data.toBase64());
+ auto encryptedData = EncryptionHelper::encryptStringAsymmetric(account->e2e()->getCertificateInformation(), account->e2e()->paddingMode(), *account->e2e(), data);
if (!encryptedData) {
qCWarning(lcCse()) << "encryption error";
return false;